package com.glacier.common.core.utils;

import java.util.UUID;

/**
 * date 2022-11-15 10:17
 * id 生成
 *
 * @author glacier
 * @version 1.0
 */
public class IdGen {
	
	private IdGen() {
	}
	
	/**
	 * 生成id 不带-
	 *
	 * @return
	 */
	public static String generateId() {
		return generateSimpleId().replace("-", "");
	}
	
	/**
	 * 生成简单的id 带-
	 *
	 * @return
	 */
	public static String generateSimpleId() {
		return UUID.randomUUID().toString();
	}
}
